import com.jacob.activeX.ActiveXComponent;
import com.jacob.com.Dispatch;
import com.jacob.com.Variant;
import com.ssm.service.impl.CardServiceImpl;

public class Testvoice {
    public static void main(String[] args) {
//       ActiveXComponent sap = new ActiveXComponent("Sapi.SpVoice");
// Dispatch sapo = sap.getObject();
// try {
// // 音量 0-100  
// sap.setProperty("Volume", new Variant(100));
// // 语音朗读速度 -10 到 +10  
//sap.setProperty("Rate", new Variant(0));
// // 执行朗读  
// Dispatch.call(sapo, "Speak", new Variant("请将身份证放入身份证阅读区"));
//
//} catch (Exception e) {
//e.printStackTrace();
//} finally {
// sapo.safeRelease();
// sap.safeRelease();
//}
        CardServiceImpl service =new CardServiceImpl();
        service.voise("dddddddddddd");
}

    }

